package com.fulihui.weixinclient.request;

import com.alibaba.fastjson.JSON;
import com.fulihui.weixinclient.result.GetCallbackIPResult;

/**
 * 获取微信服务器IP地址请求参数
 * @author Created by Willard.Hu on 2016/7/20 0020.
 */
public class GetCallbackIPRequest extends FuncWeixinRequest<GetCallbackIPResult> {
    private static final long serialVersionUID = 8854672857309208183L;

    @Override
    public String service() {
        return "https://api.weixin.qq.com/cgi-bin/getcallbackip";
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public GetCallbackIPResult parseResult(String respStr) {
        GetCallbackIPResult result = JSON.parseObject(respStr, GetCallbackIPResult.class);
        checkResult(result);
        return result;
    }
}
